package main

import "fmt"

type Person struct {
	name string
	age  int
	city string
}

// 小写的是私有的
type person struct {
	name, city string
	age        int
}

func main() {

	p1 := new(person)
	fmt.Printf("%T\n", p1)

	p1.name = "张三"
	p1.age = 19
	p1.city = "北京"
	fmt.Println(*p1)

	(*p1).age = 18
	fmt.Println(*p1)

	v3 := &Person{}
	v3.age = 99
	fmt.Println(*v3)
}
